home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: Pointer to int
- Date: 14 Mar 1996 15:13:44 GMT
- Organization: Los Alamos National Laboratory
- Distribution: world
- Message-ID: <TANMOY.96Mar14081344@qcd.lanl.gov>
- References: <4i76vf$58v@dunlop.cs.strath.ac.uk>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: abrown@cs.strath.ac.uk's message of 13 Mar 1996 19:17:03 GMT
-
- In article <4i76vf$58v@dunlop.cs.strath.ac.uk>
- abrown@cs.strath.ac.uk (Andrew Brown) writes:
-
- AB: I have a function that takes as a parameter a pointer to an int. Is it
- AB: possible to pass the address of a constant directly to the function?
-
- Sorry, constants don't have addresses in C. So, you can't pass them
- either :-)
-
- AB: x = function( &1000 );
-
- &1000 is meaningless.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-